package Naves;

import java.awt.Point;

import TDALista.Position;
import Componentes.Componente;

public abstract class NaveEnemiga extends Nave {
	
	protected Position<NaveEnemiga> posLista;
	
	public Position<NaveEnemiga> getPosLista(){
		return posLista;
	}
	public void setPosLista(Position<NaveEnemiga> p){
		posLista = p;
		
	}
	
	public void mover(Point p){
		if (p.x+getWidth()<=495 && p.y>=-200 && p.x>=-10 && p.y+getHeight()<=800 ){
			   this.setLocation(p);
			    }
		obtenerRectangulo().setLocation(p);
	}
	

	public void destruir() {
		destructor.quitarComponente(this);
	}
	
	
}
